package com.ruoyi.mall.common.mapper;

import com.ruoyi.mall.common.domain.DtsCategory;
import com.ruoyi.mall.common.domain.DtsGoods;
import com.ruoyi.mall.common.domain.DtsGoodsAttribute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DtsGoodsApiMapper {


    // 获取商品详情
    DtsGoods selectGoodsById(long id);

    //商品分类方法
    // 查询商品:关键字，商品名称，分类，价格
    List<DtsGoods> selectGoodsByDtsGoods(@Param("dtsGoods") DtsGoods dtsGoods, @Param("orderPrice") long orderPrice);

    List<DtsGoods> selectGoodsByCategoryVo(DtsCategory dtsCategory);

    List<DtsGoodsAttribute> selectGoodsAttribute(Long id);

    // 增加浏览量
    int updateGoodsById(Long id);
}
